//
//  CYCuiShouModel.m
//  CreditAddressBook
//
//  Created by mosu on 2016/9/27.
//  Copyright © 2016年 Lee. All rights reserved.
//

#import "CYCuiShouModel.h"

@implementation CYCuiShouModel

-(instancetype)initWithDictionary:(NSDictionary *)dic{
     self = [super init];
     if(nil == self){
          return nil;
     }
     
     NSString *str = [dic objectForKey:@"lendTime"];
     NSDate *date = [NSDate dateWithTimeIntervalSince1970:str.longLongValue/1000];
     NSDateFormatter *dateFormatter = [[NSDateFormatter alloc]init];
     [dateFormatter setDateFormat:@"yyyy年MM月dd日"];
     self.lendTime = [dateFormatter stringFromDate:date];
     
     
     NSString *str1 = [dic objectForKey:@"createTime"];
     NSDate *date1 = [NSDate dateWithTimeIntervalSince1970:str1.longLongValue/1000];
     NSDateFormatter *dateFormatter1 = [[NSDateFormatter alloc]init];
     [dateFormatter1 setDateFormat:@"yyyy年MM月dd日"];
     self.createTime = [dateFormatter1 stringFromDate:date1];
     
     self.title = [dic objectForKey:@"title"];
     self.defaulterQq = [dic objectForKey:@"defaulterQq"];
     self.sex =[dic objectForKey:@"sex"];
     self.name = [dic objectForKey:@"name"];
     self.certificateNo = [dic objectForKey:@"certificateNo"];
     self.phone = [dic objectForKey:@"phone"];
     self.content = [dic objectForKey:@"content"];
     self.homeAddress = [dic objectForKey:@"homeAddress"];
     self.statusId = [dic objectForKey:@"statusId"];
     self.defaulterId = [dic objectForKey:@"defaulterId"];
     self.commissionAmount = [dic objectForKey:@"commissionAmount"];
     self.evidencePhotos = [dic objectForKey:@"evidencePhotos"];
     
     
     return self;
}


@end
